package chixing.day08.homework;

public class Test3 {
    static{
        int x=5;
    }
    static int x,y;
    public static void main(String args[]){
        x--;
        myMethod( );
        System.out.println(x+y+ ++x);
        /*
        * x=0,y=0
        * 1. x=-1,y=0
        * 2,y=0,x=-1
        * 3, 1+2=3
        * */

    }
    public static void myMethod( ){

        y=x++ + ++x;
    }
}
